import {jsonToUrlParam} from "~/server/utils";

export default defineEventHandler(async (event) => {
    const baseUrl = useRuntimeConfig().public.serviceUrl;
    // const query = getQuery(event) as {blogId:string,page: number,size: number};
    // const queryParam =jsonToUrlParam(query)
    const res = await fetch(baseUrl + '/projects/getAll',{
        method: 'GET',
    }).then((res)=>res.json());
    // console.log(res.data)
    return res;
})